package cn.lysj.framework.elm.domain;

import cn.lysj.framework.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.Transient;
import java.util.Date;
import java.util.List;

/**
 * @author drj
 * @description 饿了么订单
 * @create 2019-01-21 16:35:47
 **/
@Data
@Entity
@EqualsAndHashCode(callSuper = true)
public class ElmOrder extends BaseEntity {
    private String storeId;//平台门店id
    private String shopName; //店铺名称
    private Date createdAt; //下单时间
    private double packageFee; //餐盒费
    private double deliverFee; //配送费
    private double hongbao; //红包使用情况
    private double shopPart;// 店铺承担活动费用
    private String consignee; //下单人
    private String address; //配送地址
    private String phoneList; //转发联系方式
    private String consigneePhones; //实际联系方式
    private String description; //订单备注
    @Transient
    private List<ElmFoodDetail> elmFoodDetailList; //下单菜品信息
    private double totalPrice;// 订单实付金额
    private double originalPrice;// 订单原始金额
    private String orderNumber;//订单编号
    private Integer orderStatus; //订单状态
    private String detail;//订单详情(简要显示一些菜品信息)
    private Integer print; //该订单是否需要打印

    //---------------本字段用户查询,不记入数据库-------------------
    @Transient
    private Date start_createTime;
    @Transient
    private Date end_createTime;
}